macos_recording_session_start

Start recording and stream updates to the provided callbacks.

on_state(ctx, bytes, len) – called whenever the session State changes (bytes = state.encodeToByteArray()). on_audio(ctx, bytes, len) – called per audio frame chunk (bytes = raw audio frame ByteArray from flow).

The callee owns the buffers only during the call; the caller must copy if it needs to retain data.